import {
  createI18n
} from 'vue-i18n'
import en from './en.json'
import zhHans from './zh-Hans.json'
import zhHant from './zh-Hant.json'


const lang = uni.getLocale()

const i18n = createI18n({
  locale: lang,
  messages: {
    en,
    'zh-Hans': zhHans,
    'zh-Hant': zhHant
  }
});

export default i18n
